#include <iostream>
#include <vector>
#include <tspSolution.hpp>
#include <tspLoad.hpp>
using namespace std;

struct city;

int main() {
    // 调用之前的方法，完成TSP求解步骤
    cout << "npucs2024302258 Program Design Homework" << endl;
    cout << "TSP Problem-Shooting Program" << endl;
    string location;
    cout << "Enter The File of Cities Location >> ";
    cin >> location;
    int activeRound, freezeRound;
    cout << "Enter The Max Round The Program Would Active >> "; cin >> activeRound;
    cout << "Enter The Max Round The Program Would Culture On The Same Answer >> "; cin >> freezeRound;
    vector<city> cities = loadCitiesFromFile(location);
    result answer = returnPossibleSolution(cities, activeRound, freezeRound);
    cout << answer.returnAsFinalOutput();
    cout << "It May Be A Possible Solution For The TSP Problem." << endl;
    cout << "The Program Ended Here. " << endl;
    cin >> location; // 这一行让程序别直接关了。
}